<extend name="Layout:layout_content" />
<block name="body_main">
    <div class="grid-parent xsui-page-header">
        <div class="grid-60 mobile-grid-100 grid-parent">
            <a href="{:AddonU('customer_edit')}" class="xsui-btn ui-state-default lnk-add"><i class="fa fa-plus"></i>新增</a>
            <a href="{:AddonU('customer_export')}" class="xsui-btn ui-state-default"><i class="fa fa-save"></i>导出</a>
            <a href="{:AddonU('customer_recycle','id=varkey')}" class="xsui-btn ui-state-default lnk-remove"><i class="fa fa-remove"></i>批量删除</a>
            <a href="{:AddonU('CustomerDispatch/dispatch_edit','customer_id=varkey')}" class="xsui-btn ui-state-default lnk-edit-dialog"><i class="fa fa-edit"></i>批量调度</a>
        </div>
        <div class="grid-40 mobile-grid-100 grid-parent xsui-text-right">
            <a href="#" class="xsui-btn ui-state-default lnk-refresh"><i class="fa fa-refresh"></i>刷新</a>
            <span class="xsui-input-group">
                <form method="get">
                    <input type="text" name="search_key" value="{$search.search_key}" placeholder="工号/编号/姓名/手机号码" />
                    <button type="submit" class="ui-state-default"><i class="fa fa-search"></i>搜索</button><button id="btn-search-dialog" class="ui-state-default xsui-icon-only" title="高级搜索"><i class="fa fa-gear"></i></button>
                </form>
            </span>
        </div>
        <div id="search-dialog" class="xsui-hidden" style="width:340px;">
            <form method="get" class="xsui-form">
                <table>
                    <foreach name="searchlist" item="vo">
                        <tr><th>{$vo.title}</th><td><sohtml:select name="operate" items="EQ=等于;LIKE=模糊匹配;GT=大于;LT=小于;NEQ=不等于" value="EQ" /></td><td><input type="text" name="{$vo.field_name}" placeholder="{$vo.title}"{$vo.class} /></td></tr>
                    </foreach>
                </table>
                <button type="submit">保存</button>
            </form>
        </div>
    </div>
    <div id="grid-container">
        {$content}
    </div>
</block>